package com.jilefojing.beans.pojos.enhanced;

import java.util.Date;

import com.jilefojing.beans.pojos.Favorite;
import com.jilefojing.beans.pojos.enhanced.base.BaseEnhanced;

/**
 * 
 * @author 作者 jgshun
 * @date 创建时间 2016年07月23日 02时17分03秒
 */
public class EnhancedFavorite extends BaseEnhanced {
	public EnhancedFavorite(Favorite favorite) {
		// TODO 自动生成 细微误差自己调整
		if (favorite.getId() != null) {
			this.id = favorite.getId();
		}
		if (favorite.getUserId() != null) {
			EnhancedUser enhancedUser = new EnhancedUser();
			enhancedUser.setId(favorite.getUserId());
			this.enhancedUser = enhancedUser;
		}
		this.name = favorite.getName();
		this.createTime = favorite.getCreateTime();
		this.updateTime = favorite.getUpdateTime();
	}

	public EnhancedFavorite() {
	}

	private long id;
	private EnhancedUser enhancedUser;
	private String name;
	private Date createTime;
	private Date updateTime;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public EnhancedUser getEnhancedUser() {
		return enhancedUser;
	}

	public void setEnhancedUser(EnhancedUser enhancedUser) {
		this.enhancedUser = enhancedUser;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

}